package org.springds3.d2.dao.impl;

import org.mybatis.spring.SqlSessionTemplate;
import org.springds3.d2.dao.NewsTypeMapper;
import org.springds3.d2.pojo.NewsType;

import java.util.List;

public class NewsTypeMapperImpl implements NewsTypeMapper {

    private SqlSessionTemplate sqlSessionTemplate;

    public SqlSessionTemplate getSqlSessionTemplate() {
        return sqlSessionTemplate;
    }

    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        this.sqlSessionTemplate = sqlSessionTemplate;
    }

    @Override
    public List<NewsType> getAllNewsType() {
        return sqlSessionTemplate.getMapper(NewsTypeMapper.class).getAllNewsType();
    }
}
